<?php


namespace App\HttpController\Mp2;


use App\Bizs\Mp2\MomentBiz;
use Base\BaseController;

class Moment extends BaseController
{

    /**
     * @Apiname 获取话题列表
     */
    public function getTopicList()
    {
        $this->returnJson((new MomentBiz())->getTopicList());
    }

    /**
     * @Apiname 发帖
     * @Param topic {"type": "string", "require": true, "desc": "话题"}
     * @Param content {"type": "string", "require": true, "desc": "内容"}
     * @Param images {"type": "string", "require": true, "desc": "前9张图片"}
     * @throws \App\Exceptions\BizException
     */
    public function sendMoment()
    {
        $this->returnJson((new MomentBiz())->sendMoment($this->params, $this->uid));
    }

    /**
     * @Apiname 从公众号导入文章
     * @Param topic {"type": "string", "require": true, "desc": "话题"}
     * @Param origin_link {"type": "string", "require": true, "desc": "原文链接"}
     */
    public function sendMomentFromWx()
    {

    }

    /**
     * @Apiname 获取贴列表
     */
    public function getMomentList()
    {

    }

    /**
     * @Apiname 获取贴详情
     */
    public function getMomentDetail()
    {

    }

    /**
     * @Apiname 获取评论列表
     */
    public function getCommentList()
    {

    }

    /**
     * @Apiname 发送评论
     */
    public function sendComment()
    {

    }

    /**
     * @Apiname 删帖
     */
    public function delMoment()
    {

    }

    /**
     * @Apiname 删除评论
     */
    public function delComment()
    {

    }
}
